A previous presentation displayed the geodesics of two-dimensional metrics as surfaces embedded in three-dimensional space. With a third variable in the metric, the resulting ‘surfaces’ would need four dimensions for complete visualization. This is physically difficult for mere mortals.

This presentation will instead display such geodesics in three dimensions to explore whether one can intuit the structure of the higher-dimensional ‘surfaces’ from within our own physical space. Since the visualizations become complicated quickly, only a few compact metrics will be considered, all diagonal in form for simplicity of the mathematics.

In the previous presentation, it was pointed out that one can derive geodesic equations straightforwardly from a Lagrangian describing a given metric. Define this function for the present setting as

L=12 [E u·2 +G v·2 +J t·2 ]

where the dot is differentiation with respect to invariant interval. The notation of the first two variables and their corresponding metric functions is kept consistent with the previous presentation. The Lagrange equations are

dds L q· i =L qi

which under explicit evaluation become

dds [Eu·] =12 [E1 u·2 +G1 v·2 +J1 t·2 ] dds [Gv·] =12 [E2 u·2 +G2 v·2 +J2 t·2 ] dds [Jt·] =12 [E3 u·2 +G3 v·2 +J3 t·2 ]

Expanding left-hand sides and rearranging, the second derivatives of the independent variables are

u·· =12E [E1 u·2 +G1 v·2 +J1 t·2 -2E2 u· v· -2E3 u· t· ] v·· =12G [E2 u·2 -G2 v·2 +J2 t·2 -2G1 u· v· -2G3 v· t· ] t ·· =12J [E3 u·2 +G3 v·2 -J3 t·2 -2J1 u· t· -2J2 v· t· ]

As remarked in the previous presentation, these equations are generally nonlinear and can be left in this form for the required numerical integration. Note also with t=0 and ignoring derivatives with respect to this vanishing variable, the equations are equivalent to those of the previous presentation with F=0 .

As a first and simplest example, consider the metric of a 3-sphere. To keep the notation as consistent with the lower dimensional case as possible, choose the parametrization

z=acosu x=asinucosv y=asinu sinvcost w=asinu sinvsint 0uπ , 0v2π , 0t2π

When extending a three-dimensional parametrization to one higher dimension, there are clearly multiple slots to add the new variable. For simplicity and consistency of the presentation, the additional variable will extend the last coordinate as written. That means t=0 implies w0 , reducing this metric to a 2-sphere in three dimensions.

The corresponding three-dimensional metric is

ds2 =dx2 +dy2 +dz2 +dw2 =a2( du2 +sin2u dv2 +sin2u sin2v dt2)

The geodesic equations for this metric are

u·· =12E [G1 v·2 +J1 t·2 ] =sinucosu (v·2 +sin2v t·2 ) v·· =12G [J2 t·2 -2G1 u· v· ] =sinvcosv t·2 -2cotu u· v· t ·· =1J [J1 u· t· +J2 v· t· ] =2cotu u· t· -2cotv v· t·

which reduce as expected to those of the 2-sphere for t=0 .

Since one cannot of course visualize four dimensions directly, a projection of some sort to a lower dimension must be used, and stereographic projection appears most appropriate. This procedure has been discussed in general form in another presentation, but the necessary formula can be derived rather simply.

Consider a point on a sphere and a line through it from the top of the sphere to an intersecting plane through the origin. In cross section this looks like

( 0, 0 ) ( 0, a ) ( X, 0 ) ( x, w )

Evaluating the line through the two points and solving for the projected value gives

w=a-xX X=xa-w

This simple formula will be used for projections in this presentation, where the extension to a higher dimension will employ a spherical variable.

Before visualizing the projected geodesics of a 3-sphere, an application first to a 2-sphere is most informative. Here is an interactive graphic from the previous presentation with a few modifications, illustrating the projection from three dimensions down to two:

Note that the projection being used produces a stable visual result regardless of the parameter a. This is because the parameter multiplies all variables involved, and so factors out of the projection formula. The parameter can thus be set equal to unity in what follows, not being useful in practice for higher-dimensional graphics.

A spray of geodesics in two dimensions is set in the initial conditions from a single angular variable, and so can be colored by translating this value to a hue for the line. In three dimensions one needs two angular variables for the spray, and assigning unique colors to each line takes somewhat more effort. Fortunately this has been developed in another presentation, whose final color component functions have been copied into the source of this document.

The resulting sprays are visualized in three dimensions as

These sprays represent directions in the three-dimensional angular space, and so can be used to set initial angular velocities around an initial point in angular space.

And now for the the real meat of this presentation! The projection of geodesics on a 3-sphere down one dimension looks like this:

These projected geodesics have the general form of a sphere, as should be expected. By extending the interval of integration one can see how they wrap around the 3-sphere to a location opposite the initial point.

Setting the initial angular velocities from the spray of geodesics around the initial point encounters the same curiosity of code as that in the two-dimensional case. For the 2-sphere the differential of v is multiplied by sinu in the metric, so its initial velocity was divided by this quantity to achieve parity with the variable u when assigning equally spaced values. In this three-dimensional case, the differential of v has the same factor of sinu , while the differential of t has the factor sinusinv . For both of these variables the initial velocities are divided by their respective factors for the same reason.

Further, the regions around u=0 and u=π , as well as those around v=0 and v=2π are avoided due to singularities in the second and third geodesic equations.

As a next example consider the metric of a 3-ellipsoid of rotation with one longer axis along the topmost variable. The coordinate parametrization is

z=ccosu x=asinucosv y=asinu sinvcost w=asinu sinvsint 0uπ , 0v2π , 0t2π

The corresponding three-dimensional metric is

ds2 =dx2 +dy2 +dz2 +dw2 ds2 =(a2 cos2u +c2 sin2u) du2 +a2( sin2u dv2 +sin2u sin2v dt2)

The geodesic equations for this metric are

u·· =12E [E1 u·2 +G1 v·2 +J1 t·2 ] u ·· =sinucosu a2 cos2u +c2 sin2u [(a2 -c2) u·2 +a2 v·2 +a2 sin2v t·2 ] v·· =12G [J2 t·2 -2G1 u· v· ] =sinvcosv t·2 -2cotu u· v· t ·· =1J [J1 u· t· +J2 v· t· ] =2cotu u· t· -2cotv v· t·

which differ from the previous example by one additional term and a denominator in the first equation. Naturally for c=a these equations are the same as those of the first example.

While the separate parameter a is as previously stated not useful, the geodesic equations do depend on the ratio c/a which cannot be ignored. The same ratio will appear in the projection down to three dimensions but only on the topmost variable, where it does not factor out.

The projection of geodesics on a 3-ellipsoid down one dimension is thus

The projected geodesics here are similar to those of the 3-sphere, but can as expected appear oblate or prolate depending on whether c/a<1 or c/a>1 , respectively.

For the final example, consider a torus extended into a fourth dimension by an additional spherical variable. The coordinate parametrization to be used is

z=acosu x=(b +asinu)cosv y=(b +asinu) sinvcost w=(b +asinu) sinvsint 0u2π , 0v2π , 0t2π

This parametrization is identical to that of the 3-sphere when b=0 , thereby indicating which of the two parameters can be set to unity in practice. The corresponding three-dimensional metric is

ds2 =dx2 +dy2 +dz2 +dw2 ds2 =a2 du2 +(b+asinu )2 (dv2 +sin2v dt2)

The geodesic equations for this metric are

u·· =12E [G1 v·2 +J1 t·2 ] =1a (b+asinu) cosu (v·2 +sin2v t·2 ) v·· =12G [J2 t·2 -2G1 u· v· ] =sinvcosv t·2 -2acosu b+asinu u· v· t ·· =1J [J1 u· t· +J2 v· t· ] =2acosu b+asinu u· t· -2cotv v· t·

which reduce as expected to those of a torus in three-dimensional space for t=0 .

The separate parameter a is again not useful, but like the previous example the geodesic equations depend on a ratio of parameters, in this case b/a . This ratio will also appear in the downward projection in a manner somewhat more complicated than the previous example, but straightforward.

The projection of geodesics on this four-dimensional torus down one dimension looks like this:

The maximum range of this interactive graphic has been increased relative to the other two due to the extended nature of these projected geodesics. As expected the graphic looks like the first one for b/a=0 but markedly different in general, although one can distinguish geodesics around the smaller radius of the torus.

This presentation is an experiment in identifying higher-dimensional behavior in our three-dimensional reality. These spatially four-dimensional objects are clearly mathematical abstractions, but there are real-world applications possible for this method: the general relativistic geodesics around a gravitating mass. Can one see a black hole simply from its geodesics? To be continued...


Uploaded 2026.08.26 analyticphysics.com